home *** CD-ROM | disk | FTP | other *** search
- IFF_8svx.bas - Example of playing IFF sound samples
- ===================================================
-
- This example shows the use of the IFFParse library to read a 8SVX sound sample
- and shows playing that sound sample via the Audio device. This does not handle
- 8SVX chunks that are musical instruments rather than sound samples.
-
- The program has too modes of operation. If you supply the program with
- a command line argument, it plays that sound sample. You can set this via the
- Program->Arguments menu item when running from the editor.
-
- If you don't give this program a command line, it displays the ASL file requester
- and then "glues together" the full filename entered and calls a routine to play
- the sample. When you select Cancel the example closes the Audio device and quits.
-
- The example will work on versions of Workbench 1.3 or later but note that
- iffparse.library is required under 1.3 and that the ASL file requester is not
- available under 1.3 either.
-
- Compiling
- ---------
- Load the iff_8Svx.bh file and Tokenise it (Program-Tokenise), making
- sure you have no token file selected in the File Options (Settings-Compiler-
- Files). Once you have your token file, set the File Options-Token File setting
- to the iff_8svx_inc.t file just created. Load the iff_8svx.bas file,
- compile & run it.
-